import bus from "@/bus";
import {renderButton} from '@/util'
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  form: {
    storeName: '',
    storeTypeId: '',
    addressArr: [],
    areaId: null,
    cityId: null,
    provinceId: null,
    distributorId: null,
    storeId: null
  },
  columns: [{
    title: '门店名称',
    key: 'storeName',
    align: 'left',
    width: 170
  }, {
    title: '所在区域',
    key: 'prevAddress',
    minWidth: 120
  }, {
    title: '地址',
    key: 'address',
    minWidth: 150
  }, {
    title: '联系人姓名',
    key: 'ownerName',
    align: 'left',
    width: 100
  }, {
    title: '联系手机',
    key: 'storePhone',
    align: 'left',
    width: 100
  }, {
    title: '经销商',
    key: 'distributorName',
    align: 'left',
    minWidth: 100
  }, {
    title: '门店类型',
    key: 'storeTypeName',
    align: 'left',
    minWidth: 100,
  }, {
    title: '操作',
    align: 'left',
    minWidth: 90,
    render: (h, params) => {
      return (
        <div>
          {renderButton(h, {text: '返利奖励', type: 'primary'}, () => {bus.$emit("onReward", {row: params.row})})}
        </div>
      )
    }
  }],
  data: []
}
export default data;
